OPC Studio User's Guide and Reference
OPC Data Client VBScript Examples (ASP, IE, WSH)
Examples > Examples in the Product and on the Web > OPC Data Client COM Examples > OPC Data Client VBScript Examples (ASP, IE, WSH)
In This Topic

VBScript Examples in ASP

These VBScript examples run in Internet Information Server (IIS). In order to run the examples, you need to configure an IIS virtual directory that points to the physical directory where the examples are installed.

Examples in this folder are Web server scripts: the page, including OPC data, is generated on the server. The EasyOPC component must be installed on the server side, and the OPC server(s) must be accessible locally or remotely from the computer where EasyOPC component resides.

The server must be in the Web Server (IIS) role, and in it, make sure you have the "Web Server -> Application Development -> ASP" role service.

The identity under which the Web app's application pool runs is important. It needs to have permissions to all required files and operations. In addition, you need to set the "Managed pipeline mode" of the application pool to "Classic" (not the default "Integrated").

VBScript Examples in IE

The examples here run inside Internet Explorer (IE), i.e. directly on client. No Web server is required. The EasyOPC component must be installed on the client side, and the OPC server(s) must be accessible locally or remotely from the computer where EasyOPC component resides.

VBScript Examples in WSH

The examples here run in Windows Script Host (WSH), e.g. from Windows Command Prompt.

It is possible to use CScript (console output) or WScript (window output) to run the examples. Some examples give longer output, and CScript is better for them as you do not have to confirm each “line” of output by pressing a button as in WScript.

For those who want to use the command-line interface, a "Command Prompt From Here" link is installed into the examples folder. This link allows you to switch from the Windows Explorer to a CMD window with the current directory set to the chosen place, for quick experiments and exploration.

Examples on GitHub

See Also

Fundamentals